//package com.wst.business.service.impl;
//
//import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
//import com.wst.system.config.exception.GlobalExcetion;
//import com.baomidou.mybatisplus.core.metadata.IPage;
//import org.apache.commons.lang3.StringUtils;
//import org.springframework.stereotype.Service;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//import com.wst.business.entity.ShardingDs;
//import com.wst.business.mapper.ShardingDsMapper;
//import com.wst.business.service.ShardingDsService;
//import org.springframework.transaction.annotation.Transactional;
//import org.springframework.beans.BeanUtils;
//import com.wst.business.entity.vo.ShardingDsVo;
//import java.io.Serializable;
//
///**
// * <p>
// *  服务实现类
// * </p>
// *
// * @author X.I.O
// * @since 2025-01-13
// */
////@Service
////@Transactional
////public class ShardingDsServiceImpl extends ServiceImpl<ShardingDsMapper, ShardingDs> implements ShardingDsService {
////
////
////    @Override
////    public ShardingDs getById(Serializable id){
////        return super.getById(id);
////    }
////
////
////    @Override
////    public boolean removeById(Serializable id) {
////        return super.removeById(id);
////    }
////
////
////    @Override
////    public boolean updateById(ShardingDs shardingds01) {
////        return super.updateById(shardingds01);
////    }
////
////
////    public ShardingDs saveShardingDs(ShardingDs shardingds01) throws GlobalExcetion {
////        super.save(shardingds01);
////        return shardingds01;
////    }
////
////
////    public ShardingDs updateShardingDsById(ShardingDs shardingds01) throws GlobalExcetion{
////        super.updateById(shardingds01);
////        return shardingds01;
////    }
////
////
////    public ShardingDs saveOrUpdateShardingDs(ShardingDsVo shardingds01Vo) throws GlobalExcetion{
////        ShardingDs shardingds01=new ShardingDs();
////        BeanUtils.copyProperties(shardingds01Vo,shardingds01);
////        if(shardingds01Vo.getId()!=null){
////            ShardingDs shardingds01Entity=super.baseMapper.selectById(shardingds01Vo.getId());
////            if(shardingds01Entity==null){
////                throw new GlobalExcetion(1,"数据不存在");
////            }
////            super.baseMapper.updateById(shardingds01);
////        }else{
////            super.baseMapper.insert(shardingds01);
////        }
////        return shardingds01;
////    }
////
////    public IPage<ShardingDs> page(Integer page, Integer pageSize,String name) throws GlobalExcetion{
////        LambdaQueryWrapper<ShardingDs> lambdaQueryWrapper=new LambdaQueryWrapper<>();
////        if(StringUtils.isNotBlank(name)){
////            lambdaQueryWrapper.like(ShardingDs::getName,name);
////        }
////        lambdaQueryWrapper.orderByDesc(ShardingDs::getCreatedate);
////        IPage<ShardingDs> iPage=super.baseMapper.selectPage(new Page(page,pageSize),lambdaQueryWrapper);
////        return iPage;
////    }
////}